<!-- apps/frontend/modules/CONTRATO/templates/indexSuccess.php -->

<?php use_stylesheet('jobs.css') ?>
<h1>Lista de Contratos</h1>

<div id="jobs">
  <table class="jobs">
    <?php foreach ($contratos as $i => $contrato): ?>
      <tr class="<?php echo fmod($i, 2) ? 'even' : 'odd' ?>">
        <td class="location">
        <?php echo $contrato->getReferencia() ?></td>
        <td class="position">
          <a href="<?php echo url_for('contrato/show?id='.$contrato->getId()) ?>">
            <?php echo $contrato->getCliente() ?>
          </a>
        </td>
        <td class="company"><?php echo $contrato->getCompania() ?></td>
      </tr>
    <?php endforeach; ?>
  </table>
</div>

<a href="<?php echo url_for('contrato/new') ?>">Nuevo Contrato</a>
